﻿using AutoMapper;
using XCWechat.Dtos;
using XCWechat.Entities.Clients;

namespace XCWechat.Profiles
{
    public class XCWechatProfile : Profile
    {
        public XCWechatProfile()
        {
            CreateMap<ClientInfo, ClientInfoDto>();
            CreateMap<ClientInfoDto, ClientInfo>();

            CreateMap<ClientInfoCreateDto, ClientInfo>();
            CreateMap<ClientInfoUpdateDto, ClientInfo>();

            CreateMap<AppTokenUpdateDto, ClientInfo>();
            CreateMap<AppTokenUpdateDto, ClientInfoUpdateDto>();
            CreateMap<ClientInfoDto, AppTokenUpdateDto>();
        }
    }
}
